package com.wlstock.funi.model;

import org.jsoup.select.Elements;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class PendTradeModel extends BaseModel{
	
	@DatabaseField
	private String orderDay;//委托日期
	@DatabaseField
	private String orderTime;//委托时间
	@DatabaseField (id = true)
	private String applyNum;//申请编号
	@DatabaseField
	private String orderNum;//委托编号
	@DatabaseField
	private String stkCode;//证券代码
	@DatabaseField
	private String stkName;//证券名称
	@DatabaseField
	private String bsFlag;//买卖标志
	@DatabaseField
	private String orderState;//委托状态
	@DatabaseField
	private String orderPrice;//委托价格
	@DatabaseField
	private String orderPty;//委托数量
	@DatabaseField
	private String orderMoney;//委托金额
	@DatabaseField
	private String dealPrice;//成交价格
	@DatabaseField
	private String dealPty;//成交数量
	@DatabaseField
	private String dealMoney;//成交金额
	@DatabaseField
	private String cancelPty;//已撤数量
	@DatabaseField
	private String cancelFlag;//撤单标志
	
	
	public PendTradeModel(Elements items) {
		// TODO 根据解析的标签进行赋值
		this.orderTime = items.get(1).child(0).toString().trim();
		this.applyNum  = items.get(2).child(0).toString().trim();
		this.orderNum  = items.get(3).child(0).toString().trim();
		this.stkCode   = items.get(4).child(0).toString().trim();
		this.stkName   = items.get(5).child(0).toString().trim();
		this.bsFlag    = items.get(6).child(0).toString().trim();
		this.orderState = items.get(7).child(0).toString().trim();
		this.orderPrice = items.get(8).child(0).toString().trim();
		this.orderPty   = items.get(9).child(0).toString().trim();
		this.orderMoney = items.get(10).child(0).toString().trim();
		this.dealPrice  = items.get(11).child(0).toString().trim();
		this.dealPty    = items.get(12).child(0).toString().trim();
		this.dealMoney  = items.get(13).child(0).toString().trim();
		this.cancelPty  = items.get(14).child(0).toString().trim();
		this.cancelFlag = items.get(15).child(0).toString().trim();
		
	}
	public String getOrderDay() {
		return orderDay;
	}
	public void setOrderDay(String orderDay) {
		this.orderDay = orderDay;
	}
	public String getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}
	public String getApplyNum() {
		return applyNum;
	}
	public void setApplyNum(String applyNum) {
		this.applyNum = applyNum;
	}
	public String getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	public String getStkCode() {
		return stkCode;
	}
	public void setStkCode(String stkCode) {
		this.stkCode = stkCode;
	}
	public String getStkName() {
		return stkName;
	}
	public void setStkName(String stkName) {
		this.stkName = stkName;
	}
	public String getBsFlag() {
		return bsFlag;
	}
	public void setBsFlag(String bsFlag) {
		this.bsFlag = bsFlag;
	}
	public String getOrderState() {
		return orderState;
	}
	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}
	public String getOrderPrice() {
		return orderPrice;
	}
	public void setOrderPrice(String orderPrice) {
		this.orderPrice = orderPrice;
	}
	public String getOrderPty() {
		return orderPty;
	}
	public void setOrderPty(String orderPty) {
		this.orderPty = orderPty;
	}
	public String getOrderMoney() {
		return orderMoney;
	}
	public void setOrderMoney(String orderMoney) {
		this.orderMoney = orderMoney;
	}
	public String getDealPrice() {
		return dealPrice;
	}
	public void setDealPrice(String dealPrice) {
		this.dealPrice = dealPrice;
	}
	public String getDealPty() {
		return dealPty;
	}
	public void setDealPty(String dealPty) {
		this.dealPty = dealPty;
	}
	public String getDealMoney() {
		return dealMoney;
	}
	public void setDealMoney(String dealMoney) {
		this.dealMoney = dealMoney;
	}
	
	public String getCancelPty() {
		return cancelPty;
	}
	
	public void setCancelPty(String cancelPty) {
		this.cancelPty = cancelPty;
	}
	
	public String getCancelFlag() {
		return cancelFlag;
	}
	
	public void setCancelFlag(String cancelFlag) {
		this.cancelFlag = cancelFlag;
	}
	
	
}
